package com.woniuxy.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 范腾龙
 * @create 2022/1/6
 * 用来保存鉴定的信息 并存入数据库
 */
@Data
public class AddAppraisalDto {

    @ApiModelProperty(value = "鉴定记录表id")
    @TableId(value = "appraisal_goods_id", type = IdType.AUTO)
    private Integer appraisalGoodsId;

    @ApiModelProperty(value = "正品还是赝品")
    @TableField("appraisal_goods_result")
    private String appraisalGoodsResult;

    @ApiModelProperty(value = "新旧程度（几成新）")
    @TableField("appraisal_goods_quality")
    private Integer appraisalGoodsQuality;

    @ApiModelProperty(value = "评估人")
    @TableField("appraisal_goods_name")
    private String appraisalGoodsName;

    @ApiModelProperty(value = "鉴定时间")
    @TableField("appraisal_goods_time")
    private String appraisalGoodsTime;//前端不需要传入时间  在后端用系统时间

    @ApiModelProperty(value = "备注")
    @TableField("appraisal_goods_message")
    private String appraisalGoodsMessage;

    @ApiModelProperty(value = "鉴定状态：默认0未鉴定 1：已鉴定")
    @TableField("appraisal_goods_status")
    private Integer appraisalGoodsStatus;//状态在后端收到确认添加的请求后将状态改为1，代表鉴定过了

    @ApiModelProperty(value = "关联商品id")
    @TableField("commodity_table_id")
    private Integer commodityTableId;

    @ApiModelProperty(value = "鉴定图 以json字符串形式存储 默认无")
    @TableField("appraisal_goods_picture")
    private String appraisalGoodsPicture;

    /*鉴定记录*/
    private Integer appraisalCount;
}
